unit FormPrincipalUnit;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Data.DB, Vcl.Grids,
  Vcl.DBGrids, Bde.DBTables, Vcl.Buttons;

type
  TFormPrincipal = class(TForm)
    BitBtnCadastrar: TBitBtn;
    BitBtnConsultar: TBitBtn;
    procedure BitBtnCadastrarClick(Sender: TObject);
    procedure BitBtnConsultarClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormPrincipal: TFormPrincipal;

implementation

{$R *.dfm}

uses FormCadastrarUnit, FormConsultaGondolaUnit;

procedure TFormPrincipal.BitBtnCadastrarClick(Sender: TObject);
var
telacadastro : TFormCadastrarGondola;
begin
 telacadastro := TFormCadastrarGondola.Create(self);
 try
   telacadastro.ShowModal;
 finally
   telacadastro.Free;
 end;

end;

procedure TFormPrincipal.BitBtnConsultarClick(Sender: TObject);
var
 telaconsulta : TFormConsultaGondola;
begin
 telaconsulta := TFormConsultaGondola.Create(self);
 try
  telaconsulta.ShowModal;
 finally
  telaconsulta.Free;

 end;

end;

end.
